package com.hhkj.api.order.model.req;

import cn.hutool.core.util.StrUtil;
import com.hhkj.admin.order.common.cont.OrderConst;
import com.hhkj.admin.order.model.dopo.OrderDo;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * ApiOrderReq
 *
 * @author HHKJ-SERVER-ZJ
 * @since 2023/10/30 11:20
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class ApiOrderReq extends OrderDo {

    @Override
    public void setStatusCode(String statusCode) {
        setStatusCodeList(OrderConst.StatusEnum.getByCode(statusCode).getStatusCodeList());
    }
}
